<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>申请表管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/applybill/zhuanjia/applyBill/list">申请表列表</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="bizApplyBill" action="${ctx}/applybill/zhuanjia/applyBill/list" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>单据状态：</label>
				<form:select path="billStatus" class="input-medium">
					<form:option value="" label=""/>
					<form:options items="${fns:getDictList('billStatus')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
			</li>
			<li><label>申请类型：</label>
				<form:input path="applyType" htmlEscape="false" maxlength="4" class="input-medium"/>
			</li>
			<li><label>分类编号：</label>
				<form:select path="categoryId" class="input-medium">
					<form:option value="" label=""/>
					<form:options items="${fns:getDictList('')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>编号</th>
				<th>单据状态</th>
				<th>申请类型</th>
				<th>分类名称</th>
				<th>申请书编号</th>
				<th>主营业务收入</th>
				<th>经费支出</th>
				<th>发展人员数</th>
				<th>职工总数</th>
				<th>高级专家人数</th>
				<th>博士人数</th>
				<th>外部专家数</th>
				<th>研发项目总数</th>
				<th>应用项目数</th>
				<th>国家研发项目数</th>
				<th>省级研发项目数</th>
				<th>创建时间</th>
				<shiro:hasPermission name="applybill:zhuanjia:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="bizApplyBill">
			<tr>
				<td><a href="${ctx}/applybill/zhuanjia/applyBill/detail?opt=detail&id=${bizApplyBill.id}">
					${bizApplyBill.id}
				</a></td>
				<td>
					${fns:getDictLabel(bizApplyBill.billStatus, 'billStatus', '')}
				</td>
				<td>
					${fns:getDictLabel(bizApplyBill.applyType, 'apply_type', '')}
				</td>
				<td>
					${bizApplyBill.categoryName}
				</td>
				<td>
					${bizApplyBill.applyBookId}
				</td>
				<td>
					${bizApplyBill.zhuyingShouru}
				</td>
				<td>
					${bizApplyBill.jinfeiZhichu}
				</td>
				<td>
					${bizApplyBill.shiyanRenyuan}
				</td>
				<td>
					${bizApplyBill.zhigongNum}
				</td>
				<td>
					${bizApplyBill.zhuanjiaShu}
				</td>
				<td>
					${bizApplyBill.boshiShu}
				</td>
				<td>
					${bizApplyBill.waibuzhuanjiaShu}
				</td>
				<td>
					${bizApplyBill.yanfaXiangmuNum}
				</td>
				<td>
					${bizApplyBill.yanjiuNum}
				</td>
				<td>
					${bizApplyBill.guojiaYanfaNum}
				</td>
				<td>
					${bizApplyBill.shengYanfaNum}11111
				</td>
				<td>
					<fmt:formatDate value="${bizApplyBill.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
				<shiro:hasPermission name="applybill:zhuanjia:edit">
					<c:if test="${bizApplyBill.billStatus==2 }">
						<a href="${ctx}/applybill/zhuanjia/applyBill/form?id=${bizApplyBill.id}">专家审核</a>
						<a href="${ctx}/applybill/zhuanjia/applyBill/form?id=${bizApplyBill.id}&opt=detail" >查看专家意见</a>
					</c:if>
				</shiro:hasPermission>
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>